#include "Processbar.h"

//void ForTest()
//{
//	printf("this is for test\n");
//	printf("this is for test\n");
//	printf("this is for test\n");
//	printf("this is for test\n");
//	printf("this is for test\n");
//	printf("this is for test\n");
//}


#define Length 101
#define Style '#'


//// version 1
//const char *lable = "|/-\\";
//
//void ProcBar()
//{
//	char bar[Length];
//	memset(bar, '\0', sizeof(bar));	
//	int len = strlen(lable);
//
//	int cnt = 0;
//	while(cnt <= 100)	
//	{
//	
//		printf("[%-100s] [%3d%%] [%c] \r", bar, cnt, lable[cnt%len]);
//		fflush(stdout);
//		bar[cnt++] = Style;
//		usleep(20000);
//	}
//	printf("\n");
//}

////--------------------------------------------------------------------------

// version 2


























